package com.zjgxzh.dialogservice.service.impl;

import com.zjgxzh.dialogservice.mapper.SummaryMapper;
import com.zjgxzh.dialogservice.pojo.Summary;
import com.zjgxzh.dialogservice.service.SummaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SummaryServiceImpl implements SummaryService {

    @Autowired
    SummaryMapper summaryMapper;

    public Summary findSummaryByThreadId(String threadId) {
        return summaryMapper.findSummaryByThreadId(threadId);
    }

    public void addSummary(Summary summary) {
        summaryMapper.addSummary(summary);
    }

    public void updateSummary(Summary summary) {
        summaryMapper.updateSummary(summary);
    }
}
